package com.qianzhou.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qianzhou.service.HelloService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 描述：controller
 */
@Controller
public class HelloActionController {
    @Reference
    private HelloService helloService;

    @RequestMapping("hello")
    @ResponseBody
    public String hello(@RequestBody String name) {
        return helloService.sayHello(name);
    }
}
